package com.epadmin.instruktor.kartyPracy;

import com.ep.general.instruktor.kartypracy.KartaPracyMdt;
import com.ep.general.instruktor.kartypracy.db.KartaPracy;

public class KartyView {
	public String get(int instruktorId) {
		StringBuilder sb = new StringBuilder();

		for (KartaPracy item : new KartaPracyMdt().getKarty(instruktorId)) {
			sb.append(item.getAsJson());
			sb.append(",");
		}

		if (!(sb.length() == 0)) {
			sb.deleteCharAt(sb.length() - 1);
		}
		return sb.toString();
	}
}
